package com.hsb.seckill.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hsb.seckill.entity.SeckillOrder;
import com.hsb.seckill.entity.User;

/**
 * (SeckillOrder)表服务接口
 *
 * @author makejava
 * @since 2021-09-05 21:59:33
 */
public interface SeckillOrderService extends IService<SeckillOrder> {

    /**
     * 获取秒杀结果
     * orderId：成功，-1:失败，0:排队中
     * @param user
     * @param goodsId
     * @return
     */
    Long getResult(User user, Long goodsId);
}